<template>
	<mescroll-uni ref="mescrollRef" :top="top" :paddingBottom="paddingBottom" :fixed="false" @init="mescrollInit" @down="downCallback" @up="upCallback">
		<slot></slot>
	</mescroll-uni>
</template>

<script>
import MescrollMixin from "./mescroll-uni/mescroll-mixins.js";
import mescrollUni from "./mescroll-uni/mescroll-uni.vue";
export default {
	mixins:[MescrollMixin],
	components:{
		mescrollUni
	},
	props:{
		list:{
			type:Array,
			default(){
				return []
			}
		},
		paddingBottom:{
			type:Number|String,
			default:0
		},
		top:{
			type:Number|String,
			default:0
		}
	},
	data() {
		return {
			
		}
	},
	methods: {
		upCallback(page) {
			this.$emit('upCallback',page,this.mescroll)
		},
	}
}
</script>

<style lang="scss" scoped>


</style>
